* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button {
    position: relative;
    top: -10px;
    z-index: 5;
    padding: 12px 20px;
    background-color: red;
    color: #fff;
    border: 0;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 3px rgba(255, 0, 0, .5);
}

button:active {
    transform: translateY(3px);
    box-shadow: none;
}

body {
    background-color: rgba(233, 150, 122, 0.246);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 110vh;
}

.boxes {
    position: relative;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    height: 600px;
    width: 600px;
    transition: .5s ease;
}

.boxes.big {
    height: 699px;
    width: 699px;
}

.boxes.big .box {
    transform: rotateZ(360deg);
}


.box {
    position: relative;
    background-image: url('苍蝇侠.gif');
    background-repeat: no-repeat;
    background-size: 600px, 600px;
    height: 100px;
    width: 100px;
    transition: .5s ease;
}

.box::before {
    content: '';
    background-color: rgba(255, 0, 0, .5);
    position: absolute;
    top: 8px;
    right: -15px;
    height: 100%;
    width: 15px;
    transform: skewY(45deg);
}

.box::after {
    content: '';
    background-color: red;
    position: absolute;
    bottom: -15px;
    left: 8px;
    width: 100%;
    height: 15px;
    transform: skewX(45deg);
}